#ifndef __queue_H__
#define __queue_H__

#include<stdio.h>
#include<stdlib.h>

typedef int datatype;

#define MAXSIZE 5

typedef struct 
{
	datatype data[MAXSIZE];
	int head,tail;
}queue;

queue *queue_create();

int queue_isempty(queue *);

void queue_destory(queue **);    //销毁队列

int queue_enqueue(queue *, datatype *);

int queue_dequeue(queue *, datatype *);

void queue_show(queue *);

void queue_clear(queue *);  //清空队列

#endif
